﻿using Common;
using Microsoft.AspNetCore.SignalR;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VOL.WebApi.Controllers.Hubs
{
    public class CncStatusHub : Hub
    {
        //给客户端调用
        public async Task SendMessage(RabbitCNCMessage message) => await Clients.All.SendAsync("CncMessage",message);

        public override Task OnConnectedAsync()
        {
            return base.OnConnectedAsync();
        }

        public override Task OnDisconnectedAsync(Exception exception)
        {
            return base.OnDisconnectedAsync(exception);
        }
    }
}
